<extend name="./Application/Admin/View/base.html" />
<block name="title"><title><?php echo C(APP_NAME);?>PC端管理</title></block>
<block name="stylesheets">
<link href="__PUBLIC__/assets/css/select2.css" rel="stylesheet">

</block>
<block name="stylecss">
<style type='text/css'>
    table tr td{
        width: 80%;
    }
    table tr th{
        width: 16%;
        text-align: center;
        vertical-align: middle!important;
    }
</style>
</block>
<block name="smallmenu">
<ul class="breadcrumb">
	<li>
		<i class="ace-icon fa fa-home home-icon"></i>
		<a href="{:U('Index/index')}">主页</a>
	</li>
    <li>
		<a href="{:U('Exam/index_offline')}">线下考试</a>
	</li>
	<li class="active">添加一场线下考试</li>
</ul><!-- /.breadcrumb -->

<!-- #section:basics/content.searchbox -->
<div class="nav-search" id="nav-search"></div><!-- /.nav-search -->
</block>
<block name="content">
<form action="__CONTROLLER__/exam_offline_add" method='post' id='myformedit' class="myformedit" enctype="multipart/form-data">
<input type="hidden" name="action" value="exam_offline_add_action">
<div class="row" style="margin-bottom:7px;">
    <div class="col-xs-12"><span class="label label-warning arrowed"><i class="ace-icon fa fa-user bigger-120"></i> 添加一场线下考试</span></div>
</div>
<table class="table table-striped table-bordered table-hover" >
    <tr>
        <th>考场</th>
        <td><select name="examoffline_roomid" id="" class="col-xs-6">
            <option value="">-请选择-</option>
            <?php foreach ($midiclubs as $v): ?>
                <option value="{$v.midiclub_id}">{$v.midiclub_name}</option>
            <?php endforeach ?>
        </select>
        <span class="Validform_checktip">必选项</span>
        </td>
    </tr>
    <tr>
        <th>考试日期</th>
        <td><div class="input-group col-xs-6 pull-left">
            <input class="form-control date-picker" type="text" data-date-format="yyyy-mm-dd" name='examoffline_ymd' >
            <span class="input-group-addon">
                <i class="fa fa-calendar bigger-110"></i>
            </span>
        </div>
        <span class="Validform_checktip">必选项</span>
        </td>
    </tr>
    <tr>
        <th>电吉他考试最大人数</th>
        <td><input type="number" name='examoffline_max_guitar' class="col-xs-6 ninputxt">
        <span class="Validform_checktip">必填项</span>
        </td>
    </tr>
    <tr>
        <th>爵士鼓考试最大人数</th>
        <td><input type="number" name='examoffline_max_drum' class="col-xs-6 ninputxt">
        <span class="Validform_checktip">必填项</span>
        </td>
    </tr>
    <tr>
        <th>电贝司考试最大人数</th>
        <td><input type="number" name='examoffline_max_bass' class="col-xs-6 ninputxt">
        <span class="Validform_checktip">必填项</span>
        </td>
    </tr>
    <tr>
        <td colspan="2"><button type="submit" class="btn btn-primary btn-sm" onClick="return checktelephone();">提交</button> <span class="btn btn-sm" onClick="location.href='{:U('Exam/index_offline')}'">返回</span></td>
    </tr>
</table>
</form>
</block>
<block name="scripts">
<script src="__PUBLIC__/assets/js/select2.js"></script>
</block>
<block name="jscript">
<script script="text/javascript">
    $(function(){
        $('#menu_exam').addClass('active open');
        $('#menu_examoffline_list').addClass('active');
    });
</script>
<script type="text/javascript">
    $('.date-picker').datepicker({
        autoclose: true,
        todayHighlight: true
    })
</script>

</block>